home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.plaf.basic;
-
- import java.awt.event.KeyAdapter;
- import java.awt.event.KeyEvent;
-
- public class BasicComboPopup$InvocationKeyHandler extends KeyAdapter {
- // $FF: synthetic field
- private final BasicComboPopup this$0;
-
- public BasicComboPopup$InvocationKeyHandler(BasicComboPopup var1) {
- this.this$0 = var1;
- }
-
- public void keyReleased(KeyEvent var1) {
- if (var1.getKeyCode() == 32 || var1.getKeyCode() == 10) {
- if (this.this$0.isVisible()) {
- if (BasicComboPopup.access$0(this.this$0)) {
- this.this$0.comboBox.setSelectedIndex(this.this$0.list.getSelectedIndex());
- }
-
- this.this$0.togglePopup();
- } else if (var1.getKeyCode() == 32) {
- this.this$0.togglePopup();
- }
- }
-
- }
- }
-